package com.manner.groupon.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 团购表
 * @TableName tb_groupon_buying
 */
@TableName(value ="tb_groupon_buying")
@Data
public class GrouponBuying extends Object implements Serializable {
    /**
     * 团购id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 团购券编号
     */
    @TableField(value = "g_no")
    private String gNo;

    /**
     * 外键商家编号
     */
    @TableField(value = "store_id")
    private String storeId;

    /**
     * 外键团购券编号
     */
    @TableField(value = "gcid")
    private Long gcid;

    /**
     * 团购活动名称
     */
    @TableField(value = "title")
    private String title;

    /**
     * 团购副标题
     */
    @TableField(value = "sub_title")
    private String subTitle;

    /**
     * 是否上架 
0：否
1：是
     */
    @TableField(value = "is_delete")
    private String isDelete;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}